<?xml version="1.0" encoding="UTF-8" ?>
<Module>
    <ModulePrefs title="hello world example" />
    <Content type="html">
        <![CDATA[ <script src="http://code.jquery.com/jquery-latest.js"></script>
        <script language="JavaScript">
			var url_server = "http://hdc1112.appspot.com/";
			var url_login = url_server + "login";
			var url_getnote = url_server + "getNotification?";
			var url_addchat = url_server + "addChat?";
			var url_count = url_server + "count";
			var sessionID;
			function Refresh_Count() {
				_IG_FetchContent(url_count,
				function(responseText) {
					alert(responseText);
				});
			}
			var count_timer;
			function Stop_Count_Timer() {
				clearInterval(count_timer);
			}
			function Set_Count_Timer() {
				if (typeof count_timer == "number") {
					return;
				}
				count_timer = setInterval("Refresh_Count()", 5000);
			}
        </script>
        <form name="form1">
        <input type="button" value="stop count timer" onClick="Stop_Count_Timer()" />
        <input type="button" onClick="Set_Count_Timer()" value="start count timer" />
        </form>
        ]]>
    </Content>
</Module>